import request from "@/utils/request";

// 查询轮播图列表
export function listBanner(query) {
  return request({
    url: "/cookbook/banner/list",
    method: "get",
    params: query,
  });
}

// 获取轮播图详情
export function getBanner(bannerId) {
  return request({
    url: `/cookbook/banner/${bannerId}`,
    method: "get",
  });
}
